package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@ApiModel(description = "分组新增Dto")
public class MdmGroupAddDto {
    private Integer id;

    @ApiModelProperty("分组编号")
    private String groupCode;

    @NotEmpty(message = "分组名称不能为空")
    @Size(max = 20,message = "分组名称最多20位")
    @ApiModelProperty("分组名称")
    private String groupName;

    @ApiModelProperty("上级分组ID")
    private Integer parentId;

    @ApiModelProperty("所属机构")
    private Long orgId;


    @Size(max = 50,message = "备注最多50个字符，您超额输入了")
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建人ID")
    private Integer createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;


}
